package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备折旧对象 t_device
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
public class TDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备编号 */
    private Long did;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String dname;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String dcode;

    /** 设备金额 */
    @Excel(name = "设备金额")
    private BigDecimal money;

    /** 预计使用月数 */
    @Excel(name = "预计使用月数")
    private Long canUse;

    /** 开始折旧时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始折旧时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startdate;

    /** 设备总数 */
    @Excel(name = "设备总数")
    private Long dcount;

    /** 已经折旧的月数 */
    @Excel(name = "已经折旧的月数")
    private Long deprecatedMonth;

    /** 是否已经完成折旧 */
    @Excel(name = "是否已经完成折旧")
    private Long finished;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long ofAccount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long ofCurrency;

    private Long ofCompany;

    public Long getOfCompany() {
        return ofCompany;
    }

    public void setOfCompany(Long ofCompany) {
        this.ofCompany = ofCompany;
    }



    public void setDid(Long did) 
    {
        this.did = did;
    }

    public Long getDid() 
    {
        return did;
    }
    public void setDname(String dname) 
    {
        this.dname = dname;
    }

    public String getDname() 
    {
        return dname;
    }
    public void setDcode(String dcode) 
    {
        this.dcode = dcode;
    }

    public String getDcode() 
    {
        return dcode;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setCanUse(Long canUse) 
    {
        this.canUse = canUse;
    }

    public Long getCanUse() 
    {
        return canUse;
    }
    public void setStartdate(Date startdate) 
    {
        this.startdate = startdate;
    }

    public Date getStartdate() 
    {
        return startdate;
    }
    public void setDcount(Long dcount) 
    {
        this.dcount = dcount;
    }

    public Long getDcount() 
    {
        return dcount;
    }
    public void setDeprecatedMonth(Long deprecatedMonth) 
    {
        this.deprecatedMonth = deprecatedMonth;
    }

    public Long getDeprecatedMonth() 
    {
        return deprecatedMonth;
    }
    public void setFinished(Long finished) 
    {
        this.finished = finished;
    }

    public Long getFinished() 
    {
        return finished;
    }
    public void setOfAccount(Long ofAccount) 
    {
        this.ofAccount = ofAccount;
    }

    public Long getOfAccount() 
    {
        return ofAccount;
    }
    public void setOfCurrency(Long ofCurrency) 
    {
        this.ofCurrency = ofCurrency;
    }

    public Long getOfCurrency() 
    {
        return ofCurrency;
    }
    private String createtime;

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("did", getDid())
            .append("dname", getDname())
            .append("dcode", getDcode())
            .append("money", getMoney())
            .append("canUse", getCanUse())
            .append("startdate", getStartdate())
            .append("dcount", getDcount())
            .append("deprecatedMonth", getDeprecatedMonth())
            .append("finished", getFinished())
            .append("ofAccount", getOfAccount())
            .append("ofCurrency", getOfCurrency())
            .toString();
    }
}
